<html lang="en">
<head>
	<?php
		$this->load->library('session');
	?>
 	<meta charset="utf-8" />
  	<title>Baby Shop</title>
	<link rel="stylesheet" href="<?php echo(CSS.'style.css'); ?>">
</head>
<body>
<div id="header">
	<div id="up">
	</div>
</div>
<div id="main-content">
	<center>
		<?php echo form_open("Login/processlogin"); ?>
		<table id="log-tabel">
            <tr>
                <td>Username</td>
                <td><input type="text" name="username" value="" maxlength="100"/></td>
            </tr>
            <tr>
                <td>Password</td>
                <td><input type="password" name="password" value="" maxlength="100"/></td>
            </tr>
			<tr>
				<td colspan="2">
					<center>
						<?php
							if(isset($gagal)){
								switch($gagal){
									case 1 :	echo "Wrong Username Or Password";
												break;
								}
							}
						?>
					<center>
				</td>
			</tr>
            <tr>
                <td colspan="2">
					<center>
						<input type="submit" value="Login"/>
					</center>
				</td>
            </tr>
        </table>
        <?php
            echo form_close();
        ?>

	</center>
</div>
<div id="footer">
@CopyRigth 2013
</div>
</body>
</html>